<?php
/*  AjaxWhois Pro 1.0 alpha1 for Joomla 1.5
*   by Uma Sharma bizguruji@softuff.org
*   Powered by Softuff eDevelopment - www.softuff.org
*
* @ Released under GNU/LGPL License : http://www.fsf.org/
**/

// ensure this file is being included by a parent file
if ( ! ( defined( '_VALID_AW' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); }

	if (substr($awParams->version,0,3) != "Pro") {
		echo "Compatibility Issue - Please Install the compatible Module Version";
		exit;
	}

	if ($_REQUEST['option'] == "com_ajaxwhois") { 
		$awComp = 1;
		$awHeight = "128px";
		$awDef = "/comp";
	} else {
		$awComp = 0;
		$awHeight = "80px";
		$awDef = "/module";
	}
	include(_AW_COMP_INCPATH."templates".DS.$awParams->awTemplate.$awDef."_def.php");
	?>

	<style type="text/css">
	td, th {
		margin:0;
		padding:0;
	}
	</style>

    <?php include(_AW_COMP_INCPATH."templates".DS."default".DS."form.php"); ?>

	<div id="ajaxlogs">
	</div>
    <div id="ajaxlogC">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
          <tr>
            <td id="whoisBoxHead" colspan="2" width="100%">
    		  <span id="domain"></span>
            </td>
          </tr>
		<?php for ($i=0; $i<$extsCount; $i += 2) { ?>
          <tr>
          	<td width="50%">
			  <div id="ajaxlog<?php echo $i; ?>">
			  </div>
            </td>
            <td width="50%">
			  <div id="ajaxlog<?php echo $i+1; ?>">
			  </div>
            </td>
          </tr>
		<?php } ?>
        </table>
    </div>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
      <tr>
        <td id="whois-b" width="100%">
        </td>
      </tr>
    </table>

	<script type="text/javascript">
	  function showDivs() {}
	  showDivs();
	  document.domainForm.DomainSearchBox.autocomplete = 'off';
	</script>
